//
//  AccountTool.h
//  CMJWeibo
//
//  Created by BH on 15/12/9.
//
//

#import <Foundation/Foundation.h>
#import "AccessTokenParam.h"
#import "AccessTokenResult.h"

@class Account;

@interface AccountTool : NSObject

+(void)saveAccount:(Account *)account;
+(Account *)account;

/**
 *  获得accessToken
 *
 *  @param param   请求参数
 *  @param success 请求成功后的回调(传模型数据)
 *  @param failure 请求失败后的回调(传错误信息)
 */
+(void)accessTokenWithParam:(AccessTokenParam *)param success:(void(^)(AccessTokenResult *result))success failure:(void(^)(NSError *error))failure;

@end
